<?php

if (!function_exists('ioc')) {
    function ioc($abstract = null, $params = [])
    {
        if ($abstract) {
            return \App\Core\Ioc::getInstance()->make($abstract, $params);
        }
        return \App\Core\Ioc::getInstance();
    }
}

if (!function_exists('dispatch')) {
    function dispatch(\App\Job\IJob $job)
    {
        return new \App\Job\Dispatcher($job);
    }
}
